package com.cjy.dao;

import com.cjy.pojo.FasdfsFile;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;


public interface FasdfsFileRepository extends JpaRepository<FasdfsFile,Long>,JpaSpecificationExecutor<FasdfsFile> {
    @Query("select b from FasdfsFile b where b.isPrivate = false ")
    Page<FasdfsFile> findTop(Pageable pageable);
}
